
public class NewPaper {
	private  String ID;
    private  String Headline;
    private  String name;
    public NewPaper() {
		
	}
    public NewPaper(String ID,String headline) {
		this.ID=ID;
		this.Headline=headline;
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		this.ID = iD;
	}
	
	
	@Override
	public String toString() {
		return Headline;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((Headline == null) ? 0 : Headline.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		NewPaper other = (NewPaper) obj;
		if (Headline == null) {
			if (other.Headline != null)
				return false;
		} else if (!Headline.equals(other.Headline))
			return false;
		return true;
	}
	public String getHeadline() {
		return Headline;
	}
	public void setHeadline(String headline) {
		Headline = headline;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
